Integrand size = 43, antiderivative size = 419 \[ \int \frac {(a+b \sec (c+d x))^4 \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right )}{\sec ^{\frac {3}{2}}(c+d x)} \, dx=\frac {2 \left (5 a^4 B-30 a^2 b^2 B-3 b^4 B+20 a^3 b (A-C)-4 a b^3 (5 A+3 C)\right ) \sqrt {\cos (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \sqrt {\sec (c+d x)}}{5 d}+\frac {2 \left (84 a^3 b B+28 a b^3 B+42 a^2 b^2 (3 A+C)+7 a^4 (A+3 C)+b^4 (7 A+5 C)\right ) \sqrt {\cos (c+d x)} \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right ) \sqrt {\sec (c+d x)}}{21 d}+\frac {2 b \left (609 a^2 b B+63 b^3 B-a^3 (70 A-366 C)+84 a b^2 (5 A+3 C)\right ) \sqrt {\sec (c+d x)} \sin (c+d x)}{105 d}+\frac {2 b^2 \left (98 a b B-a^2 (35 A-87 C)+5 b^2 (7 A+5 C)\right ) \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{105 d}-\frac {2 b (35 a A-21 b B-39 a C) \sqrt {\sec (c+d x)} (a+b \sec (c+d x))^2 \sin (c+d x)}{105 d}-\frac {2 b (7 A-3 C) \sqrt {\sec (c+d x)} (a+b \sec (c+d x))^3 \sin (c+d x)}{21 d}+\frac {2 A (a+b \sec (c+d x))^4 \sin (c+d x)}{3 d \sqrt {\sec (c+d x)}} \]
2/105*b^2*(98*B*a*b-a^2*(35*A-87*C)+5*b^2*(7*A+5*C))*sec(d*x+c)^(3/2)*sin( d*x+c)/d+2/3*A*(a+b*sec(d*x+c))^4*sin(d*x+c)/d/sec(d*x+c)^(1/2)+2/105*b*(6 09*B*a^2*b+63*B*b^3-a^3*(70*A-366*C)+84*a*b^2*(5*A+3*C))*sin(d*x+c)*sec(d* x+c)^(1/2)/d-2/105*b*(35*A*a-21*B*b-39*C*a)*(a+b*sec(d*x+c))^2*sin(d*x+c)* sec(d*x+c)^(1/2)/d-2/21*b*(7*A-3*C)*(a+b*sec(d*x+c))^3*sin(d*x+c)*sec(d*x+ c)^(1/2)/d+2/5*(5*B*a^4-30*B*a^2*b^2-3*B*b^4+20*a^3*b*(A-C)-4*a*b^3*(5*A+3 *C))*(cos(1/2*d*x+1/2*c)^2)^(1/2)/cos(1/2*d*x+1/2*c)*EllipticE(sin(1/2*d*x +1/2*c),2^(1/2))*cos(d*x+c)^(1/2)*sec(d*x+c)^(1/2)/d+2/21*(84*B*a^3*b+28*B *a*b^3+42*a^2*b^2*(3*A+C)+7*a^4*(A+3*C)+b^4*(7*A+5*C))*(cos(1/2*d*x+1/2*c) ^2)^(1/2)/cos(1/2*d*x+1/2*c)*EllipticF(sin(1/2*d*x+1/2*c),2^(1/2))*cos(d*x +c)^(1/2)*sec(d*x+c)^(1/2)/d
Time = 12.70 (sec) , antiderivative size = 418, normalized size of antiderivative = 1.00 \[ \int \frac {(a+b \sec (c+d x))^4 \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right )}{\sec ^{\frac {3}{2}}(c+d x)} \, dx=\frac {2 (a+b \sec (c+d x))^4 \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right ) \left (42 \left (5 a^4 B-30 a^2 b^2 B-3 b^4 B+20 a^3 b (A-C)-4 a b^3 (5 A+3 C)\right ) \sqrt {\cos (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right )+10 \left (84 a^3 b B+28 a b^3 B+42 a^2 b^2 (3 A+C)+7 a^4 (A+3 C)+b^4 (7 A+5 C)\right ) \sqrt {\cos (c+d x)} \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right )+840 a A b^3 \sin (c+d x)+1260 a^2 b^2 B \sin (c+d x)+126 b^4 B \sin (c+d x)+840 a^3 b C \sin (c+d x)+504 a b^3 C \sin (c+d x)+35 a^4 A \sin (2 (c+d x))+70 A b^4 \tan (c+d x)+280 a b^3 B \tan (c+d x)+420 a^2 b^2 C \tan (c+d x)+50 b^4 C \tan (c+d x)+42 b^4 B \sec (c+d x) \tan (c+d x)+168 a b^3 C \sec (c+d x) \tan (c+d x)+30 b^4 C \sec ^2(c+d x) \tan (c+d x)\right )}{105 d (b+a \cos (c+d x))^4 (A+2 C+2 B \cos (c+d x)+A \cos (2 (c+d x))) \sec ^{\frac {11}{2}}(c+d x)} \]
Integrate[((a + b*Sec[c + d*x])^4*(A + B*Sec[c + d*x] + C*Sec[c + d*x]^2)) /Sec[c + d*x]^(3/2),x]
(2*(a + b*Sec[c + d*x])^4*(A + B*Sec[c + d*x] + C*Sec[c + d*x]^2)*(42*(5*a ^4*B - 30*a^2*b^2*B - 3*b^4*B + 20*a^3*b*(A - C) - 4*a*b^3*(5*A + 3*C))*Sq rt[Cos[c + d*x]]*EllipticE[(c + d*x)/2, 2] + 10*(84*a^3*b*B + 28*a*b^3*B + 42*a^2*b^2*(3*A + C) + 7*a^4*(A + 3*C) + b^4*(7*A + 5*C))*Sqrt[Cos[c + d* x]]*EllipticF[(c + d*x)/2, 2] + 840*a*A*b^3*Sin[c + d*x] + 1260*a^2*b^2*B* Sin[c + d*x] + 126*b^4*B*Sin[c + d*x] + 840*a^3*b*C*Sin[c + d*x] + 504*a*b ^3*C*Sin[c + d*x] + 35*a^4*A*Sin[2*(c + d*x)] + 70*A*b^4*Tan[c + d*x] + 28 0*a*b^3*B*Tan[c + d*x] + 420*a^2*b^2*C*Tan[c + d*x] + 50*b^4*C*Tan[c + d*x ] + 42*b^4*B*Sec[c + d*x]*Tan[c + d*x] + 168*a*b^3*C*Sec[c + d*x]*Tan[c + d*x] + 30*b^4*C*Sec[c + d*x]^2*Tan[c + d*x]))/(105*d*(b + a*Cos[c + d*x])^ 4*(A + 2*C + 2*B*Cos[c + d*x] + A*Cos[2*(c + d*x)])*Sec[c + d*x]^(11/2))
Time = 3.02 (sec) , antiderivative size = 426, normalized size of antiderivative = 1.02, number of steps used = 23, number of rules used = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.535, Rules used = {3042, 4582, 27, 3042, 4584, 27, 3042, 4584, 27, 3042, 4564, 27, 3042, 4535, 3042, 4258, 3042, 3120, 4534, 3042, 4258, 3042, 3119}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \frac {(a+b \sec (c+d x))^4 \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right )}{\sec ^{\frac {3}{2}}(c+d x)} \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \frac {\left (a+b \csc \left (c+d x+\frac {\pi }{2}\right )\right )^4 \left (A+B \csc \left (c+d x+\frac {\pi }{2}\right )+C \csc \left (c+d x+\frac {\pi }{2}\right )^2\right )}{\csc \left (c+d x+\frac {\pi }{2}\right )^{3/2}}dx\) |
\(\Big \downarrow \) 4582 |
\(\displaystyle \frac {2}{3} \int \frac {(a+b \sec (c+d x))^3 \left (-b (7 A-3 C) \sec ^2(c+d x)+(3 b B+a (A+3 C)) \sec (c+d x)+8 A b+3 a B\right )}{2 \sqrt {\sec (c+d x)}}dx+\frac {2 A \sin (c+d x) (a+b \sec (c+d x))^4}{3 d \sqrt {\sec (c+d x)}}\) |
\(\Big \downarrow \) 27 |
\(\displaystyle \frac {1}{3} \int \frac {(a+b \sec (c+d x))^3 \left (-b (7 A-3 C) \sec ^2(c+d x)+(3 b B+a (A+3 C)) \sec (c+d x)+8 A b+3 a B\right )}{\sqrt {\sec (c+d x)}}dx+\frac {2 A \sin (c+d x) (a+b \sec (c+d x))^4}{3 d \sqrt {\sec (c+d x)}}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {1}{3} \int \frac {\left (a+b \csc \left (c+d x+\frac {\pi }{2}\right )\right )^3 \left (-b (7 A-3 C) \csc \left (c+d x+\frac {\pi }{2}\right )^2+(3 b B+a (A+3 C)) \csc \left (c+d x+\frac {\pi }{2}\right )+8 A b+3 a B\right )}{\sqrt {\csc \left (c+d x+\frac {\pi }{2}\right )}}dx+\frac {2 A \sin (c+d x) (a+b \sec (c+d x))^4}{3 d \sqrt {\sec (c+d x)}}\) |
\(\Big \downarrow \) 4584 |
\(\displaystyle \frac {1}{3} \left (\frac {2}{7} \int \frac {(a+b \sec (c+d x))^2 \left (-b (35 a A-21 b B-39 a C) \sec ^2(c+d x)+\left (7 (A+3 C) a^2+42 b B a+3 b^2 (7 A+5 C)\right ) \sec (c+d x)+3 a (21 A b-C b+7 a B)\right )}{2 \sqrt {\sec (c+d x)}}dx-\frac {2 b (7 A-3 C) \sin (c+d x) \sqrt {\sec (c+d x)} (a+b \sec (c+d x))^3}{7 d}\right )+\frac {2 A \sin (c+d x) (a+b \sec (c+d x))^4}{3 d \sqrt {\sec (c+d x)}}\) |
\(\Big \downarrow \) 27 |
\(\displaystyle \frac {1}{3} \left (\frac {1}{7} \int \frac {(a+b \sec (c+d x))^2 \left (-b (35 a A-21 b B-39 a C) \sec ^2(c+d x)+\left (7 (A+3 C) a^2+42 b B a+3 b^2 (7 A+5 C)\right ) \sec (c+d x)+3 a (21 A b-C b+7 a B)\right )}{\sqrt {\sec (c+d x)}}dx-\frac {2 b (7 A-3 C) \sin (c+d x) \sqrt {\sec (c+d x)} (a+b \sec (c+d x))^3}{7 d}\right )+\frac {2 A \sin (c+d x) (a+b \sec (c+d x))^4}{3 d \sqrt {\sec (c+d x)}}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {1}{3} \left (\frac {1}{7} \int \frac {\left (a+b \csc \left (c+d x+\frac {\pi }{2}\right )\right )^2 \left (-b (35 a A-21 b B-39 a C) \csc \left (c+d x+\frac {\pi }{2}\right )^2+\left (7 (A+3 C) a^2+42 b B a+3 b^2 (7 A+5 C)\right ) \csc \left (c+d x+\frac {\pi }{2}\right )+3 a (21 A b-C b+7 a B)\right )}{\sqrt {\csc \left (c+d x+\frac {\pi }{2}\right )}}dx-\frac {2 b (7 A-3 C) \sin (c+d x) \sqrt {\sec (c+d x)} (a+b \sec (c+d x))^3}{7 d}\right )+\frac {2 A \sin (c+d x) (a+b \sec (c+d x))^4}{3 d \sqrt {\sec (c+d x)}}\) |
\(\Big \downarrow \) 4584 |
\(\displaystyle \frac {1}{3} \left (\frac {1}{7} \left (\frac {2}{5} \int \frac {(a+b \sec (c+d x)) \left (3 b \left (-\left ((35 A-87 C) a^2\right )+98 b B a+5 b^2 (7 A+5 C)\right ) \sec ^2(c+d x)+\left (35 (A+3 C) a^3+315 b B a^2+3 b^2 (105 A+59 C) a+63 b^3 B\right ) \sec (c+d x)+a \left (105 B a^2+350 A b a-54 b C a-21 b^2 B\right )\right )}{2 \sqrt {\sec (c+d x)}}dx-\frac {2 b \sin (c+d x) \sqrt {\sec (c+d x)} (35 a A-39 a C-21 b B) (a+b \sec (c+d x))^2}{5 d}\right )-\frac {2 b (7 A-3 C) \sin (c+d x) \sqrt {\sec (c+d x)} (a+b \sec (c+d x))^3}{7 d}\right )+\frac {2 A \sin (c+d x) (a+b \sec (c+d x))^4}{3 d \sqrt {\sec (c+d x)}}\) |
\(\Big \downarrow \) 27 |
\(\displaystyle \frac {1}{3} \left (\frac {1}{7} \left (\frac {1}{5} \int \frac {(a+b \sec (c+d x)) \left (3 b \left (-\left ((35 A-87 C) a^2\right )+98 b B a+5 b^2 (7 A+5 C)\right ) \sec ^2(c+d x)+\left (35 (A+3 C) a^3+315 b B a^2+3 b^2 (105 A+59 C) a+63 b^3 B\right ) \sec (c+d x)+a \left (105 B a^2+350 A b a-54 b C a-21 b^2 B\right )\right )}{\sqrt {\sec (c+d x)}}dx-\frac {2 b \sin (c+d x) \sqrt {\sec (c+d x)} (35 a A-39 a C-21 b B) (a+b \sec (c+d x))^2}{5 d}\right )-\frac {2 b (7 A-3 C) \sin (c+d x) \sqrt {\sec (c+d x)} (a+b \sec (c+d x))^3}{7 d}\right )+\frac {2 A \sin (c+d x) (a+b \sec (c+d x))^4}{3 d \sqrt {\sec (c+d x)}}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {1}{3} \left (\frac {1}{7} \left (\frac {1}{5} \int \frac {\left (a+b \csc \left (c+d x+\frac {\pi }{2}\right )\right ) \left (3 b \left (-\left ((35 A-87 C) a^2\right )+98 b B a+5 b^2 (7 A+5 C)\right ) \csc \left (c+d x+\frac {\pi }{2}\right )^2+\left (35 (A+3 C) a^3+315 b B a^2+3 b^2 (105 A+59 C) a+63 b^3 B\right ) \csc \left (c+d x+\frac {\pi }{2}\right )+a \left (105 B a^2+350 A b a-54 b C a-21 b^2 B\right )\right )}{\sqrt {\csc \left (c+d x+\frac {\pi }{2}\right )}}dx-\frac {2 b \sin (c+d x) \sqrt {\sec (c+d x)} (35 a A-39 a C-21 b B) (a+b \sec (c+d x))^2}{5 d}\right )-\frac {2 b (7 A-3 C) \sin (c+d x) \sqrt {\sec (c+d x)} (a+b \sec (c+d x))^3}{7 d}\right )+\frac {2 A \sin (c+d x) (a+b \sec (c+d x))^4}{3 d \sqrt {\sec (c+d x)}}\) |
\(\Big \downarrow \) 4564 |
\(\displaystyle \frac {1}{3} \left (\frac {1}{7} \left (\frac {1}{5} \left (\frac {2}{3} \int \frac {3 \left (\left (105 B a^2+350 A b a-54 b C a-21 b^2 B\right ) a^2+b \left (-\left ((70 A-366 C) a^3\right )+609 b B a^2+84 b^2 (5 A+3 C) a+63 b^3 B\right ) \sec ^2(c+d x)+5 \left (7 (A+3 C) a^4+84 b B a^3+42 b^2 (3 A+C) a^2+28 b^3 B a+b^4 (7 A+5 C)\right ) \sec (c+d x)\right )}{2 \sqrt {\sec (c+d x)}}dx+\frac {2 b^2 \sin (c+d x) \sec ^{\frac {3}{2}}(c+d x) \left (-\left (a^2 (35 A-87 C)\right )+98 a b B+5 b^2 (7 A+5 C)\right )}{d}\right )-\frac {2 b \sin (c+d x) \sqrt {\sec (c+d x)} (35 a A-39 a C-21 b B) (a+b \sec (c+d x))^2}{5 d}\right )-\frac {2 b (7 A-3 C) \sin (c+d x) \sqrt {\sec (c+d x)} (a+b \sec (c+d x))^3}{7 d}\right )+\frac {2 A \sin (c+d x) (a+b \sec (c+d x))^4}{3 d \sqrt {\sec (c+d x)}}\) |
\(\Big \downarrow \) 27 |
\(\displaystyle \frac {1}{3} \left (\frac {1}{7} \left (\frac {1}{5} \left (\int \frac {\left (105 B a^2+350 A b a-54 b C a-21 b^2 B\right ) a^2+b \left (-\left ((70 A-366 C) a^3\right )+609 b B a^2+84 b^2 (5 A+3 C) a+63 b^3 B\right ) \sec ^2(c+d x)+5 \left (7 (A+3 C) a^4+84 b B a^3+42 b^2 (3 A+C) a^2+28 b^3 B a+b^4 (7 A+5 C)\right ) \sec (c+d x)}{\sqrt {\sec (c+d x)}}dx+\frac {2 b^2 \sin (c+d x) \sec ^{\frac {3}{2}}(c+d x) \left (-\left (a^2 (35 A-87 C)\right )+98 a b B+5 b^2 (7 A+5 C)\right )}{d}\right )-\frac {2 b \sin (c+d x) \sqrt {\sec (c+d x)} (35 a A-39 a C-21 b B) (a+b \sec (c+d x))^2}{5 d}\right )-\frac {2 b (7 A-3 C) \sin (c+d x) \sqrt {\sec (c+d x)} (a+b \sec (c+d x))^3}{7 d}\right )+\frac {2 A \sin (c+d x) (a+b \sec (c+d x))^4}{3 d \sqrt {\sec (c+d x)}}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {1}{3} \left (\frac {1}{7} \left (\frac {1}{5} \left (\int \frac {\left (105 B a^2+350 A b a-54 b C a-21 b^2 B\right ) a^2+b \left (-\left ((70 A-366 C) a^3\right )+609 b B a^2+84 b^2 (5 A+3 C) a+63 b^3 B\right ) \csc \left (c+d x+\frac {\pi }{2}\right )^2+5 \left (7 (A+3 C) a^4+84 b B a^3+42 b^2 (3 A+C) a^2+28 b^3 B a+b^4 (7 A+5 C)\right ) \csc \left (c+d x+\frac {\pi }{2}\right )}{\sqrt {\csc \left (c+d x+\frac {\pi }{2}\right )}}dx+\frac {2 b^2 \sin (c+d x) \sec ^{\frac {3}{2}}(c+d x) \left (-\left (a^2 (35 A-87 C)\right )+98 a b B+5 b^2 (7 A+5 C)\right )}{d}\right )-\frac {2 b \sin (c+d x) \sqrt {\sec (c+d x)} (35 a A-39 a C-21 b B) (a+b \sec (c+d x))^2}{5 d}\right )-\frac {2 b (7 A-3 C) \sin (c+d x) \sqrt {\sec (c+d x)} (a+b \sec (c+d x))^3}{7 d}\right )+\frac {2 A \sin (c+d x) (a+b \sec (c+d x))^4}{3 d \sqrt {\sec (c+d x)}}\) |
\(\Big \downarrow \) 4535 |
\(\displaystyle \frac {1}{3} \left (\frac {1}{7} \left (\frac {1}{5} \left (\int \frac {\left (105 B a^2+350 A b a-54 b C a-21 b^2 B\right ) a^2+b \left (-\left ((70 A-366 C) a^3\right )+609 b B a^2+84 b^2 (5 A+3 C) a+63 b^3 B\right ) \sec ^2(c+d x)}{\sqrt {\sec (c+d x)}}dx+5 \left (7 a^4 (A+3 C)+84 a^3 b B+42 a^2 b^2 (3 A+C)+28 a b^3 B+b^4 (7 A+5 C)\right ) \int \sqrt {\sec (c+d x)}dx+\frac {2 b^2 \sin (c+d x) \sec ^{\frac {3}{2}}(c+d x) \left (-\left (a^2 (35 A-87 C)\right )+98 a b B+5 b^2 (7 A+5 C)\right )}{d}\right )-\frac {2 b \sin (c+d x) \sqrt {\sec (c+d x)} (35 a A-39 a C-21 b B) (a+b \sec (c+d x))^2}{5 d}\right )-\frac {2 b (7 A-3 C) \sin (c+d x) \sqrt {\sec (c+d x)} (a+b \sec (c+d x))^3}{7 d}\right )+\frac {2 A \sin (c+d x) (a+b \sec (c+d x))^4}{3 d \sqrt {\sec (c+d x)}}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {1}{3} \left (\frac {1}{7} \left (\frac {1}{5} \left (\int \frac {\left (105 B a^2+350 A b a-54 b C a-21 b^2 B\right ) a^2+b \left (-\left ((70 A-366 C) a^3\right )+609 b B a^2+84 b^2 (5 A+3 C) a+63 b^3 B\right ) \csc \left (c+d x+\frac {\pi }{2}\right )^2}{\sqrt {\csc \left (c+d x+\frac {\pi }{2}\right )}}dx+5 \left (7 a^4 (A+3 C)+84 a^3 b B+42 a^2 b^2 (3 A+C)+28 a b^3 B+b^4 (7 A+5 C)\right ) \int \sqrt {\csc \left (c+d x+\frac {\pi }{2}\right )}dx+\frac {2 b^2 \sin (c+d x) \sec ^{\frac {3}{2}}(c+d x) \left (-\left (a^2 (35 A-87 C)\right )+98 a b B+5 b^2 (7 A+5 C)\right )}{d}\right )-\frac {2 b \sin (c+d x) \sqrt {\sec (c+d x)} (35 a A-39 a C-21 b B) (a+b \sec (c+d x))^2}{5 d}\right )-\frac {2 b (7 A-3 C) \sin (c+d x) \sqrt {\sec (c+d x)} (a+b \sec (c+d x))^3}{7 d}\right )+\frac {2 A \sin (c+d x) (a+b \sec (c+d x))^4}{3 d \sqrt {\sec (c+d x)}}\) |
\(\Big \downarrow \) 4258 |
\(\displaystyle \frac {1}{3} \left (\frac {1}{7} \left (\frac {1}{5} \left (\int \frac {\left (105 B a^2+350 A b a-54 b C a-21 b^2 B\right ) a^2+b \left (-\left ((70 A-366 C) a^3\right )+609 b B a^2+84 b^2 (5 A+3 C) a+63 b^3 B\right ) \csc \left (c+d x+\frac {\pi }{2}\right )^2}{\sqrt {\csc \left (c+d x+\frac {\pi }{2}\right )}}dx+5 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \left (7 a^4 (A+3 C)+84 a^3 b B+42 a^2 b^2 (3 A+C)+28 a b^3 B+b^4 (7 A+5 C)\right ) \int \frac {1}{\sqrt {\cos (c+d x)}}dx+\frac {2 b^2 \sin (c+d x) \sec ^{\frac {3}{2}}(c+d x) \left (-\left (a^2 (35 A-87 C)\right )+98 a b B+5 b^2 (7 A+5 C)\right )}{d}\right )-\frac {2 b \sin (c+d x) \sqrt {\sec (c+d x)} (35 a A-39 a C-21 b B) (a+b \sec (c+d x))^2}{5 d}\right )-\frac {2 b (7 A-3 C) \sin (c+d x) \sqrt {\sec (c+d x)} (a+b \sec (c+d x))^3}{7 d}\right )+\frac {2 A \sin (c+d x) (a+b \sec (c+d x))^4}{3 d \sqrt {\sec (c+d x)}}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {1}{3} \left (\frac {1}{7} \left (\frac {1}{5} \left (\int \frac {\left (105 B a^2+350 A b a-54 b C a-21 b^2 B\right ) a^2+b \left (-\left ((70 A-366 C) a^3\right )+609 b B a^2+84 b^2 (5 A+3 C) a+63 b^3 B\right ) \csc \left (c+d x+\frac {\pi }{2}\right )^2}{\sqrt {\csc \left (c+d x+\frac {\pi }{2}\right )}}dx+5 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \left (7 a^4 (A+3 C)+84 a^3 b B+42 a^2 b^2 (3 A+C)+28 a b^3 B+b^4 (7 A+5 C)\right ) \int \frac {1}{\sqrt {\sin \left (c+d x+\frac {\pi }{2}\right )}}dx+\frac {2 b^2 \sin (c+d x) \sec ^{\frac {3}{2}}(c+d x) \left (-\left (a^2 (35 A-87 C)\right )+98 a b B+5 b^2 (7 A+5 C)\right )}{d}\right )-\frac {2 b \sin (c+d x) \sqrt {\sec (c+d x)} (35 a A-39 a C-21 b B) (a+b \sec (c+d x))^2}{5 d}\right )-\frac {2 b (7 A-3 C) \sin (c+d x) \sqrt {\sec (c+d x)} (a+b \sec (c+d x))^3}{7 d}\right )+\frac {2 A \sin (c+d x) (a+b \sec (c+d x))^4}{3 d \sqrt {\sec (c+d x)}}\) |
\(\Big \downarrow \) 3120 |
\(\displaystyle \frac {1}{3} \left (\frac {1}{7} \left (\frac {1}{5} \left (\int \frac {\left (105 B a^2+350 A b a-54 b C a-21 b^2 B\right ) a^2+b \left (-\left ((70 A-366 C) a^3\right )+609 b B a^2+84 b^2 (5 A+3 C) a+63 b^3 B\right ) \csc \left (c+d x+\frac {\pi }{2}\right )^2}{\sqrt {\csc \left (c+d x+\frac {\pi }{2}\right )}}dx+\frac {2 b^2 \sin (c+d x) \sec ^{\frac {3}{2}}(c+d x) \left (-\left (a^2 (35 A-87 C)\right )+98 a b B+5 b^2 (7 A+5 C)\right )}{d}+\frac {10 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right ) \left (7 a^4 (A+3 C)+84 a^3 b B+42 a^2 b^2 (3 A+C)+28 a b^3 B+b^4 (7 A+5 C)\right )}{d}\right )-\frac {2 b \sin (c+d x) \sqrt {\sec (c+d x)} (35 a A-39 a C-21 b B) (a+b \sec (c+d x))^2}{5 d}\right )-\frac {2 b (7 A-3 C) \sin (c+d x) \sqrt {\sec (c+d x)} (a+b \sec (c+d x))^3}{7 d}\right )+\frac {2 A \sin (c+d x) (a+b \sec (c+d x))^4}{3 d \sqrt {\sec (c+d x)}}\) |
\(\Big \downarrow \) 4534 |
\(\displaystyle \frac {1}{3} \left (\frac {1}{7} \left (\frac {1}{5} \left (21 \left (5 a^4 B+20 a^3 b (A-C)-30 a^2 b^2 B-4 a b^3 (5 A+3 C)-3 b^4 B\right ) \int \frac {1}{\sqrt {\sec (c+d x)}}dx+\frac {2 b^2 \sin (c+d x) \sec ^{\frac {3}{2}}(c+d x) \left (-\left (a^2 (35 A-87 C)\right )+98 a b B+5 b^2 (7 A+5 C)\right )}{d}+\frac {2 b \sin (c+d x) \sqrt {\sec (c+d x)} \left (-\left (a^3 (70 A-366 C)\right )+609 a^2 b B+84 a b^2 (5 A+3 C)+63 b^3 B\right )}{d}+\frac {10 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right ) \left (7 a^4 (A+3 C)+84 a^3 b B+42 a^2 b^2 (3 A+C)+28 a b^3 B+b^4 (7 A+5 C)\right )}{d}\right )-\frac {2 b \sin (c+d x) \sqrt {\sec (c+d x)} (35 a A-39 a C-21 b B) (a+b \sec (c+d x))^2}{5 d}\right )-\frac {2 b (7 A-3 C) \sin (c+d x) \sqrt {\sec (c+d x)} (a+b \sec (c+d x))^3}{7 d}\right )+\frac {2 A \sin (c+d x) (a+b \sec (c+d x))^4}{3 d \sqrt {\sec (c+d x)}}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {1}{3} \left (\frac {1}{7} \left (\frac {1}{5} \left (21 \left (5 a^4 B+20 a^3 b (A-C)-30 a^2 b^2 B-4 a b^3 (5 A+3 C)-3 b^4 B\right ) \int \frac {1}{\sqrt {\csc \left (c+d x+\frac {\pi }{2}\right )}}dx+\frac {2 b^2 \sin (c+d x) \sec ^{\frac {3}{2}}(c+d x) \left (-\left (a^2 (35 A-87 C)\right )+98 a b B+5 b^2 (7 A+5 C)\right )}{d}+\frac {2 b \sin (c+d x) \sqrt {\sec (c+d x)} \left (-\left (a^3 (70 A-366 C)\right )+609 a^2 b B+84 a b^2 (5 A+3 C)+63 b^3 B\right )}{d}+\frac {10 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right ) \left (7 a^4 (A+3 C)+84 a^3 b B+42 a^2 b^2 (3 A+C)+28 a b^3 B+b^4 (7 A+5 C)\right )}{d}\right )-\frac {2 b \sin (c+d x) \sqrt {\sec (c+d x)} (35 a A-39 a C-21 b B) (a+b \sec (c+d x))^2}{5 d}\right )-\frac {2 b (7 A-3 C) \sin (c+d x) \sqrt {\sec (c+d x)} (a+b \sec (c+d x))^3}{7 d}\right )+\frac {2 A \sin (c+d x) (a+b \sec (c+d x))^4}{3 d \sqrt {\sec (c+d x)}}\) |
\(\Big \downarrow \) 4258 |
\(\displaystyle \frac {1}{3} \left (\frac {1}{7} \left (\frac {1}{5} \left (21 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \left (5 a^4 B+20 a^3 b (A-C)-30 a^2 b^2 B-4 a b^3 (5 A+3 C)-3 b^4 B\right ) \int \sqrt {\cos (c+d x)}dx+\frac {2 b^2 \sin (c+d x) \sec ^{\frac {3}{2}}(c+d x) \left (-\left (a^2 (35 A-87 C)\right )+98 a b B+5 b^2 (7 A+5 C)\right )}{d}+\frac {2 b \sin (c+d x) \sqrt {\sec (c+d x)} \left (-\left (a^3 (70 A-366 C)\right )+609 a^2 b B+84 a b^2 (5 A+3 C)+63 b^3 B\right )}{d}+\frac {10 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right ) \left (7 a^4 (A+3 C)+84 a^3 b B+42 a^2 b^2 (3 A+C)+28 a b^3 B+b^4 (7 A+5 C)\right )}{d}\right )-\frac {2 b \sin (c+d x) \sqrt {\sec (c+d x)} (35 a A-39 a C-21 b B) (a+b \sec (c+d x))^2}{5 d}\right )-\frac {2 b (7 A-3 C) \sin (c+d x) \sqrt {\sec (c+d x)} (a+b \sec (c+d x))^3}{7 d}\right )+\frac {2 A \sin (c+d x) (a+b \sec (c+d x))^4}{3 d \sqrt {\sec (c+d x)}}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {1}{3} \left (\frac {1}{7} \left (\frac {1}{5} \left (21 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \left (5 a^4 B+20 a^3 b (A-C)-30 a^2 b^2 B-4 a b^3 (5 A+3 C)-3 b^4 B\right ) \int \sqrt {\sin \left (c+d x+\frac {\pi }{2}\right )}dx+\frac {2 b^2 \sin (c+d x) \sec ^{\frac {3}{2}}(c+d x) \left (-\left (a^2 (35 A-87 C)\right )+98 a b B+5 b^2 (7 A+5 C)\right )}{d}+\frac {2 b \sin (c+d x) \sqrt {\sec (c+d x)} \left (-\left (a^3 (70 A-366 C)\right )+609 a^2 b B+84 a b^2 (5 A+3 C)+63 b^3 B\right )}{d}+\frac {10 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right ) \left (7 a^4 (A+3 C)+84 a^3 b B+42 a^2 b^2 (3 A+C)+28 a b^3 B+b^4 (7 A+5 C)\right )}{d}\right )-\frac {2 b \sin (c+d x) \sqrt {\sec (c+d x)} (35 a A-39 a C-21 b B) (a+b \sec (c+d x))^2}{5 d}\right )-\frac {2 b (7 A-3 C) \sin (c+d x) \sqrt {\sec (c+d x)} (a+b \sec (c+d x))^3}{7 d}\right )+\frac {2 A \sin (c+d x) (a+b \sec (c+d x))^4}{3 d \sqrt {\sec (c+d x)}}\) |
\(\Big \downarrow \) 3119 |
\(\displaystyle \frac {1}{3} \left (\frac {1}{7} \left (\frac {1}{5} \left (\frac {2 b^2 \sin (c+d x) \sec ^{\frac {3}{2}}(c+d x) \left (-\left (a^2 (35 A-87 C)\right )+98 a b B+5 b^2 (7 A+5 C)\right )}{d}+\frac {2 b \sin (c+d x) \sqrt {\sec (c+d x)} \left (-\left (a^3 (70 A-366 C)\right )+609 a^2 b B+84 a b^2 (5 A+3 C)+63 b^3 B\right )}{d}+\frac {10 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right ) \left (7 a^4 (A+3 C)+84 a^3 b B+42 a^2 b^2 (3 A+C)+28 a b^3 B+b^4 (7 A+5 C)\right )}{d}+\frac {42 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \left (5 a^4 B+20 a^3 b (A-C)-30 a^2 b^2 B-4 a b^3 (5 A+3 C)-3 b^4 B\right )}{d}\right )-\frac {2 b \sin (c+d x) \sqrt {\sec (c+d x)} (35 a A-39 a C-21 b B) (a+b \sec (c+d x))^2}{5 d}\right )-\frac {2 b (7 A-3 C) \sin (c+d x) \sqrt {\sec (c+d x)} (a+b \sec (c+d x))^3}{7 d}\right )+\frac {2 A \sin (c+d x) (a+b \sec (c+d x))^4}{3 d \sqrt {\sec (c+d x)}}\) |
(2*A*(a + b*Sec[c + d*x])^4*Sin[c + d*x])/(3*d*Sqrt[Sec[c + d*x]]) + ((-2* b*(7*A - 3*C)*Sqrt[Sec[c + d*x]]*(a + b*Sec[c + d*x])^3*Sin[c + d*x])/(7*d ) + ((-2*b*(35*a*A - 21*b*B - 39*a*C)*Sqrt[Sec[c + d*x]]*(a + b*Sec[c + d* x])^2*Sin[c + d*x])/(5*d) + ((42*(5*a^4*B - 30*a^2*b^2*B - 3*b^4*B + 20*a^ 3*b*(A - C) - 4*a*b^3*(5*A + 3*C))*Sqrt[Cos[c + d*x]]*EllipticE[(c + d*x)/ 2, 2]*Sqrt[Sec[c + d*x]])/d + (10*(84*a^3*b*B + 28*a*b^3*B + 42*a^2*b^2*(3 *A + C) + 7*a^4*(A + 3*C) + b^4*(7*A + 5*C))*Sqrt[Cos[c + d*x]]*EllipticF[ (c + d*x)/2, 2]*Sqrt[Sec[c + d*x]])/d + (2*b*(609*a^2*b*B + 63*b^3*B - a^3 *(70*A - 366*C) + 84*a*b^2*(5*A + 3*C))*Sqrt[Sec[c + d*x]]*Sin[c + d*x])/d + (2*b^2*(98*a*b*B - a^2*(35*A - 87*C) + 5*b^2*(7*A + 5*C))*Sec[c + d*x]^ (3/2)*Sin[c + d*x])/d)/5)/7)/3
3.11.6.3.1 Defintions of rubi rules used
Int[(a_)*(Fx_), x_Symbol] :> Simp[a Int[Fx, x], x] /; FreeQ[a, x] && !Ma tchQ[Fx, (b_)*(Gx_) /; FreeQ[b, x]]
Int[Sqrt[sin[(c_.) + (d_.)*(x_)]], x_Symbol] :> Simp[(2/d)*EllipticE[(1/2)* (c - Pi/2 + d*x), 2], x] /; FreeQ[{c, d}, x]
Int[1/Sqrt[sin[(c_.) + (d_.)*(x_)]], x_Symbol] :> Simp[(2/d)*EllipticF[(1/2 )*(c - Pi/2 + d*x), 2], x] /; FreeQ[{c, d}, x]
Int[(csc[(c_.) + (d_.)*(x_)]*(b_.))^(n_), x_Symbol] :> Simp[(b*Csc[c + d*x] )^n*Sin[c + d*x]^n Int[1/Sin[c + d*x]^n, x], x] /; FreeQ[{b, c, d}, x] && EqQ[n^2, 1/4]
Int[(csc[(e_.) + (f_.)*(x_)]*(b_.))^(m_.)*(csc[(e_.) + (f_.)*(x_)]^2*(C_.) + (A_)), x_Symbol] :> Simp[(-C)*Cot[e + f*x]*((b*Csc[e + f*x])^m/(f*(m + 1) )), x] + Simp[(C*m + A*(m + 1))/(m + 1) Int[(b*Csc[e + f*x])^m, x], x] /; FreeQ[{b, e, f, A, C, m}, x] && NeQ[C*m + A*(m + 1), 0] && !LeQ[m, -1]
Int[(csc[(e_.) + (f_.)*(x_)]*(b_.))^(m_.)*((A_.) + csc[(e_.) + (f_.)*(x_)]* (B_.) + csc[(e_.) + (f_.)*(x_)]^2*(C_.)), x_Symbol] :> Simp[B/b Int[(b*Cs c[e + f*x])^(m + 1), x], x] + Int[(b*Csc[e + f*x])^m*(A + C*Csc[e + f*x]^2) , x] /; FreeQ[{b, e, f, A, B, C, m}, x]
Int[((A_.) + csc[(e_.) + (f_.)*(x_)]*(B_.) + csc[(e_.) + (f_.)*(x_)]^2*(C_. ))*(csc[(e_.) + (f_.)*(x_)]*(d_.))^(n_.)*(csc[(e_.) + (f_.)*(x_)]*(b_.) + ( a_)), x_Symbol] :> Simp[(-b)*C*Csc[e + f*x]*Cot[e + f*x]*((d*Csc[e + f*x])^ n/(f*(n + 2))), x] + Simp[1/(n + 2) Int[(d*Csc[e + f*x])^n*Simp[A*a*(n + 2) + (B*a*(n + 2) + b*(C*(n + 1) + A*(n + 2)))*Csc[e + f*x] + (a*C + B*b)*( n + 2)*Csc[e + f*x]^2, x], x], x] /; FreeQ[{a, b, d, e, f, A, B, C, n}, x] && !LtQ[n, -1]
Int[((A_.) + csc[(e_.) + (f_.)*(x_)]*(B_.) + csc[(e_.) + (f_.)*(x_)]^2*(C_. ))*(csc[(e_.) + (f_.)*(x_)]*(d_.))^(n_)*(csc[(e_.) + (f_.)*(x_)]*(b_.) + (a _))^(m_), x_Symbol] :> Simp[A*Cot[e + f*x]*(a + b*Csc[e + f*x])^m*((d*Csc[e + f*x])^n/(f*n)), x] - Simp[1/(d*n) Int[(a + b*Csc[e + f*x])^(m - 1)*(d* Csc[e + f*x])^(n + 1)*Simp[A*b*m - a*B*n - (b*B*n + a*(C*n + A*(n + 1)))*Cs c[e + f*x] - b*(C*n + A*(m + n + 1))*Csc[e + f*x]^2, x], x], x] /; FreeQ[{a , b, d, e, f, A, B, C}, x] && NeQ[a^2 - b^2, 0] && GtQ[m, 0] && LeQ[n, -1]
Int[((A_.) + csc[(e_.) + (f_.)*(x_)]*(B_.) + csc[(e_.) + (f_.)*(x_)]^2*(C_. ))*(csc[(e_.) + (f_.)*(x_)]*(d_.))^(n_)*(csc[(e_.) + (f_.)*(x_)]*(b_.) + (a _))^(m_), x_Symbol] :> Simp[(-C)*Cot[e + f*x]*(a + b*Csc[e + f*x])^m*((d*Cs c[e + f*x])^n/(f*(m + n + 1))), x] + Simp[1/(m + n + 1) Int[(a + b*Csc[e + f*x])^(m - 1)*(d*Csc[e + f*x])^n*Simp[a*A*(m + n + 1) + a*C*n + ((A*b + a *B)*(m + n + 1) + b*C*(m + n))*Csc[e + f*x] + (b*B*(m + n + 1) + a*C*m)*Csc [e + f*x]^2, x], x], x] /; FreeQ[{a, b, d, e, f, A, B, C, n}, x] && NeQ[a^2 - b^2, 0] && GtQ[m, 0] && !LeQ[n, -1]
Leaf count of result is larger than twice the leaf count of optimal. \(1537\) vs. \(2(439)=878\).
Time = 8.55 (sec) , antiderivative size = 1538, normalized size of antiderivative = 3.67
method | result | size |
parts | \(\text {Expression too large to display}\) | \(1538\) |
default | \(\text {Expression too large to display}\) | \(1597\) |
int((a+b*sec(d*x+c))^4*(A+B*sec(d*x+c)+C*sec(d*x+c)^2)/sec(d*x+c)^(3/2),x, method=_RETURNVERBOSE)
2*(4*A*a^3*b+B*a^4)*((2*cos(1/2*d*x+1/2*c)^2-1)*sin(1/2*d*x+1/2*c)^2)^(1/2 )*(sin(1/2*d*x+1/2*c)^2)^(1/2)*(-2*cos(1/2*d*x+1/2*c)^2+1)^(1/2)*EllipticE (cos(1/2*d*x+1/2*c),2^(1/2))/(-2*sin(1/2*d*x+1/2*c)^4+sin(1/2*d*x+1/2*c)^2 )^(1/2)/sin(1/2*d*x+1/2*c)/(2*cos(1/2*d*x+1/2*c)^2-1)^(1/2)/d-2/5*(B*b^4+4 *C*a*b^3)*(-(-2*cos(1/2*d*x+1/2*c)^2+1)*sin(1/2*d*x+1/2*c)^2)^(1/2)/(8*sin (1/2*d*x+1/2*c)^6-12*sin(1/2*d*x+1/2*c)^4+6*sin(1/2*d*x+1/2*c)^2-1)/sin(1/ 2*d*x+1/2*c)^3*(24*sin(1/2*d*x+1/2*c)^6*cos(1/2*d*x+1/2*c)-12*EllipticE(co s(1/2*d*x+1/2*c),2^(1/2))*(2*sin(1/2*d*x+1/2*c)^2-1)^(1/2)*(sin(1/2*d*x+1/ 2*c)^2)^(1/2)*sin(1/2*d*x+1/2*c)^4-24*cos(1/2*d*x+1/2*c)*sin(1/2*d*x+1/2*c )^4+12*EllipticE(cos(1/2*d*x+1/2*c),2^(1/2))*(2*sin(1/2*d*x+1/2*c)^2-1)^(1 /2)*(sin(1/2*d*x+1/2*c)^2)^(1/2)*sin(1/2*d*x+1/2*c)^2+8*sin(1/2*d*x+1/2*c) ^2*cos(1/2*d*x+1/2*c)-3*EllipticE(cos(1/2*d*x+1/2*c),2^(1/2))*(2*sin(1/2*d *x+1/2*c)^2-1)^(1/2)*(sin(1/2*d*x+1/2*c)^2)^(1/2))*(-2*sin(1/2*d*x+1/2*c)^ 4+sin(1/2*d*x+1/2*c)^2)^(1/2)/(2*cos(1/2*d*x+1/2*c)^2-1)^(1/2)/d-2/3*(A*b^ 4+4*B*a*b^3+6*C*a^2*b^2)*(-2*(sin(1/2*d*x+1/2*c)^2)^(1/2)*(2*sin(1/2*d*x+1 /2*c)^2-1)^(1/2)*EllipticF(cos(1/2*d*x+1/2*c),2^(1/2))*sin(1/2*d*x+1/2*c)^ 2-2*sin(1/2*d*x+1/2*c)^2*cos(1/2*d*x+1/2*c)+(sin(1/2*d*x+1/2*c)^2)^(1/2)*( 2*sin(1/2*d*x+1/2*c)^2-1)^(1/2)*EllipticF(cos(1/2*d*x+1/2*c),2^(1/2)))*((2 *cos(1/2*d*x+1/2*c)^2-1)*sin(1/2*d*x+1/2*c)^2)^(1/2)/(-2*sin(1/2*d*x+1/2*c )^4+sin(1/2*d*x+1/2*c)^2)^(1/2)/(2*cos(1/2*d*x+1/2*c)^2-1)^(3/2)/sin(1/...
Result contains higher order function than in optimal. Order 9 vs. order 4.
Time = 0.19 (sec) , antiderivative size = 478, normalized size of antiderivative = 1.14 \[ \int \frac {(a+b \sec (c+d x))^4 \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right )}{\sec ^{\frac {3}{2}}(c+d x)} \, dx=-\frac {5 \, \sqrt {2} {\left (7 i \, {\left (A + 3 \, C\right )} a^{4} + 84 i \, B a^{3} b + 42 i \, {\left (3 \, A + C\right )} a^{2} b^{2} + 28 i \, B a b^{3} + i \, {\left (7 \, A + 5 \, C\right )} b^{4}\right )} \cos \left (d x + c\right )^{3} {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) + i \, \sin \left (d x + c\right )\right ) + 5 \, \sqrt {2} {\left (-7 i \, {\left (A + 3 \, C\right )} a^{4} - 84 i \, B a^{3} b - 42 i \, {\left (3 \, A + C\right )} a^{2} b^{2} - 28 i \, B a b^{3} - i \, {\left (7 \, A + 5 \, C\right )} b^{4}\right )} \cos \left (d x + c\right )^{3} {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) - i \, \sin \left (d x + c\right )\right ) + 21 \, \sqrt {2} {\left (-5 i \, B a^{4} - 20 i \, {\left (A - C\right )} a^{3} b + 30 i \, B a^{2} b^{2} + 4 i \, {\left (5 \, A + 3 \, C\right )} a b^{3} + 3 i \, B b^{4}\right )} \cos \left (d x + c\right )^{3} {\rm weierstrassZeta}\left (-4, 0, {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) + i \, \sin \left (d x + c\right )\right )\right ) + 21 \, \sqrt {2} {\left (5 i \, B a^{4} + 20 i \, {\left (A - C\right )} a^{3} b - 30 i \, B a^{2} b^{2} - 4 i \, {\left (5 \, A + 3 \, C\right )} a b^{3} - 3 i \, B b^{4}\right )} \cos \left (d x + c\right )^{3} {\rm weierstrassZeta}\left (-4, 0, {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) - i \, \sin \left (d x + c\right )\right )\right ) - \frac {2 \, {\left (35 \, A a^{4} \cos \left (d x + c\right )^{4} + 15 \, C b^{4} + 21 \, {\left (20 \, C a^{3} b + 30 \, B a^{2} b^{2} + 4 \, {\left (5 \, A + 3 \, C\right )} a b^{3} + 3 \, B b^{4}\right )} \cos \left (d x + c\right )^{3} + 5 \, {\left (42 \, C a^{2} b^{2} + 28 \, B a b^{3} + {\left (7 \, A + 5 \, C\right )} b^{4}\right )} \cos \left (d x + c\right )^{2} + 21 \, {\left (4 \, C a b^{3} + B b^{4}\right )} \cos \left (d x + c\right )\right )} \sin \left (d x + c\right )}{\sqrt {\cos \left (d x + c\right )}}}{105 \, d \cos \left (d x + c\right )^{3}} \]
integrate((a+b*sec(d*x+c))^4*(A+B*sec(d*x+c)+C*sec(d*x+c)^2)/sec(d*x+c)^(3 /2),x, algorithm="fricas")
-1/105*(5*sqrt(2)*(7*I*(A + 3*C)*a^4 + 84*I*B*a^3*b + 42*I*(3*A + C)*a^2*b ^2 + 28*I*B*a*b^3 + I*(7*A + 5*C)*b^4)*cos(d*x + c)^3*weierstrassPInverse( -4, 0, cos(d*x + c) + I*sin(d*x + c)) + 5*sqrt(2)*(-7*I*(A + 3*C)*a^4 - 84 *I*B*a^3*b - 42*I*(3*A + C)*a^2*b^2 - 28*I*B*a*b^3 - I*(7*A + 5*C)*b^4)*co s(d*x + c)^3*weierstrassPInverse(-4, 0, cos(d*x + c) - I*sin(d*x + c)) + 2 1*sqrt(2)*(-5*I*B*a^4 - 20*I*(A - C)*a^3*b + 30*I*B*a^2*b^2 + 4*I*(5*A + 3 *C)*a*b^3 + 3*I*B*b^4)*cos(d*x + c)^3*weierstrassZeta(-4, 0, weierstrassPI nverse(-4, 0, cos(d*x + c) + I*sin(d*x + c))) + 21*sqrt(2)*(5*I*B*a^4 + 20 *I*(A - C)*a^3*b - 30*I*B*a^2*b^2 - 4*I*(5*A + 3*C)*a*b^3 - 3*I*B*b^4)*cos (d*x + c)^3*weierstrassZeta(-4, 0, weierstrassPInverse(-4, 0, cos(d*x + c) - I*sin(d*x + c))) - 2*(35*A*a^4*cos(d*x + c)^4 + 15*C*b^4 + 21*(20*C*a^3 *b + 30*B*a^2*b^2 + 4*(5*A + 3*C)*a*b^3 + 3*B*b^4)*cos(d*x + c)^3 + 5*(42* C*a^2*b^2 + 28*B*a*b^3 + (7*A + 5*C)*b^4)*cos(d*x + c)^2 + 21*(4*C*a*b^3 + B*b^4)*cos(d*x + c))*sin(d*x + c)/sqrt(cos(d*x + c)))/(d*cos(d*x + c)^3)
Timed out. \[ \int \frac {(a+b \sec (c+d x))^4 \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right )}{\sec ^{\frac {3}{2}}(c+d x)} \, dx=\text {Timed out} \]
Timed out. \[ \int \frac {(a+b \sec (c+d x))^4 \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right )}{\sec ^{\frac {3}{2}}(c+d x)} \, dx=\text {Timed out} \]
integrate((a+b*sec(d*x+c))^4*(A+B*sec(d*x+c)+C*sec(d*x+c)^2)/sec(d*x+c)^(3 /2),x, algorithm="maxima")
\[ \int \frac {(a+b \sec (c+d x))^4 \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right )}{\sec ^{\frac {3}{2}}(c+d x)} \, dx=\int { \frac {{\left (C \sec \left (d x + c\right )^{2} + B \sec \left (d x + c\right ) + A\right )} {\left (b \sec \left (d x + c\right ) + a\right )}^{4}}{\sec \left (d x + c\right )^{\frac {3}{2}}} \,d x } \]
integrate((a+b*sec(d*x+c))^4*(A+B*sec(d*x+c)+C*sec(d*x+c)^2)/sec(d*x+c)^(3 /2),x, algorithm="giac")
integrate((C*sec(d*x + c)^2 + B*sec(d*x + c) + A)*(b*sec(d*x + c) + a)^4/s ec(d*x + c)^(3/2), x)
Timed out. \[ \int \frac {(a+b \sec (c+d x))^4 \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right )}{\sec ^{\frac {3}{2}}(c+d x)} \, dx=\int \frac {{\left (a+\frac {b}{\cos \left (c+d\,x\right )}\right )}^4\,\left (A+\frac {B}{\cos \left (c+d\,x\right )}+\frac {C}{{\cos \left (c+d\,x\right )}^2}\right )}{{\left (\frac {1}{\cos \left (c+d\,x\right )}\right )}^{3/2}} \,d x \]
int(((a + b/cos(c + d*x))^4*(A + B/cos(c + d*x) + C/cos(c + d*x)^2))/(1/co s(c + d*x))^(3/2),x)